#!/bin/bash
echo "========================================================================"
echo "🎯 YOLOv8n优化训练 - 冲击83.7% mAP@0.5"
echo "========================================================================"
echo ""
echo "📊 优化要点："
echo "   ✅ 训练300轮（原120轮）"
echo "   ✅ 损失权重大幅调整（box=15.0, cls=2.0, dfl=3.5）"
echo "   ✅ 极致数据增强（针对scallop类别）"
echo "   ✅ 激进检测参数（conf=0.001, iou=0.4）"
echo "   ✅ Batch size=32（加速训练）"
echo ""
echo "⏱️  预计训练时间：3-4小时（RTX 4090）"
echo ""
read -p "是否开始训练？[y/N] " -n 1 -r
echo ""
if [[ $REPLY =~ ^[Yy]$ ]]; then
    echo "🚀 启动训练..."
    python train_yolov8n_optimized.py
else
    echo "❌ 已取消"
fi
